<script setup lang="ts">
import {ref} from "vue";
const props = defineProps({
  count: {
    type: Number,
    required: true
  }
})
const emits=defineEmits(['Add'])

const handleAdd = () => {
  emits('add',props.count+1)
}

</script>

<template>
  <div class="children" @click="handleAdd">props:{{count}}</div>
</template>
